package Service.ServiceImpl;

import Dao.DaoImpl.StudentDaoImpl;
import Dao.StudentDao;
import Service.StudentService;
import domain.Student;

import java.util.HashMap;
import java.util.List;

public class StudentServiceImpl implements StudentService {
    private StudentDao dao = new StudentDaoImpl();

    @Override
    public void addStudent(Student student) {
        dao.addStudent(student);
    }

    @Override
    public List<Student> fuzzyQueryStudent(HashMap<String, String> map) {
       return dao.fuzzyQueryStudent(map);
    }

    @Override
    public List<Student> listStudent() {
        return null;
    }



    @Override
    public List<Student> findStudentByStunum(String stunum) {
        return dao.findStudentByStunum(stunum);
    }

    @Override
    public void updateStudent(Student student) {
        dao.updateStudent(student);
    }

    @Override
    public void deleteStudentByStunum(String stunum) {
        dao.deleteStudentByStunum(stunum);
    }


}
